//
//  YYRDatePickerView.h
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/10.
//  Copyright © 2019 优房网. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,YYRDatePickerViewMode) {
    
    YYRDatePickerViewDateYearMonthDayHourMinuteSecondMode = 0, // 年月日,时分秒
    YYRDatePickerViewDateYearMonthDayHourMinuteMode, // 年月日,时分
    YYRDatePickerViewDateYearMonthDayHourMode, // 年月日,时
    YYRDatePickerViewDateYearMonthDayMode, // 年月日
    YYRDatePickerViewDateYearMonthMode, // 年月
    YYRDatePickerViewDateYearMode, // 年
    
};

@interface YYRDatePickerView : UIView

/// 选择模式
@property (nonatomic, assign) YYRDatePickerViewMode pickerViewMode;

/// 设置中心标题文字
@property (nonatomic,copy) NSString *title;

/// 设置当前时间
@property (strong, nonatomic) NSDate *currentDate;

/// 点击确定返回时间
@property (copy, nonatomic) void(^confirmCompletionBlock)(NSString *date);

/**
 显示
 */
- (void)showDateTimePickerView;

/**
 * 掩藏
 */
- (void)hideDateTimePickerView;

@end

NS_ASSUME_NONNULL_END
